package com.lihegang.example.mapper;

import com.lihegang.example.bean.RoncooUser;
import org.apache.ibatis.annotations.Mapper;

/**
 * mapper一直有
 * 第一种基于注解
 * 第二种基于xml文件
 */
@Mapper
public interface RoncooUserMapper {
   // @Insert(value = "insert into roncoo_user (name,create_time) values (#{name,jdbcType=VARCHAR},#{createTime,jdbcType=TIMESTAMP})")
    int insert(RoncooUser record);

    // @Select(value = "select id, name, create_time from roncoo_user where id = #{id,jdbcType=INTEGER}")
    // @Results(value = {@Result(column = "create_time", property = "createTime", jdbcType = JdbcType.TIMESTAMP)})
    RoncooUser selectByPrimaryKey(Integer id);
}